package com.taxsearch.dao.room;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * @description: 
 *
 * @author: 杜一平
 *
 * @create: 2018年9月17日-上午8:59:54
 **/
public interface RoomMapper {

	
	// 批量插入房间表
	int insertRoomByBatch(@Param("list") List<Map<String, String>> list);
	
	// 批量插入房间金额表
	int insertRoomJeByBatch(@Param("list") List<Map<String, String>> list);
	
	
	// 批量删除房间
	int deleteRoom(@Param("list") List<String> list, @Param("stationid") String stationid);
	
	// 批量删除房间金额
	int deleteRoomJe(@Param("list") List<String> list, @Param("stationid") String stationid);
	
	
	// 批量更新房间
	int updateRoomByBatch(@Param("list") List<String> list, @Param("STATIONID") String STATIONID, @Param("MAXPEOPLE") String MAXPEOPLE);
	
	// 批量更新房间金额
	int updateRoomJeByBatch(@Param("list") List<String> list, @Param("STATIONID") String STATIONID, @Param("MONEY") String MONEY);
	
	
	// 判断房间是否有入住信息
	List<String>judgeInsertRoom(@Param("list") List<String> list, @Param("stationid") String stationid);
	
	
	
	// 单个操作
	// 插入房间表
	int insertRoom(Map<String, String> map);
	
	// 插入房间金额表
	int insertRoomJe(Map<String, String> map);
	
	// 更新房间
	int updateRoom(Map<String, String> map);
	
	// 更新房间金额
	int updateRoomJe(Map<String, String> map);
}
